<template>
  <div id="shortcuts">
    <p class="title">快捷操作<span class="el-icon-setting setting" @click="linkSetting"></span></p>

    <div class="shortcutslist">
      <ul>
        <router-link tag="li" v-for="(item,index) in setTingData" :key='index' :to="item.route">
        <div class="vab-remix-icon-box">
          <vab-remix-icon :icon-class="item.quickIcon" class="vab-remix-icon" />
        </div>
          <div class="right-info">
            <h3>{{item.title}}</h3>
            <p>{{item.description}}</p>
          </div>
        </router-link>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
        //列表数据
        shortcutsList:[]
    }
  },
  props:{
    setTingData:{
      type:Array,
    }
  },
  methods:{
    linkSetting(){
      this.$router.push('/commonlyUsed/commonlyUsed')
    }
  }
}
</script>

<style scoped lang='scss'>
#shortcuts {
     height: 100%;
     .vab-remix-icon-box {
       width: 32px;
       height: 32px;
       border-radius: 50%;
       display: flex;
       justify-content: center;
       overflow: hidden;
       align-items: center;
       .vab-remix-icon{
           font-size: 30px;
       }

     }
  .title {
    font-size: 18px;
    margin: 0;
    margin-bottom: 15px;
    position: relative;
    .setting{
      position: absolute;
      right: 0;
      cursor: pointer;
    }
  }
  .shortcutslist {
    height: 80%;
    ul {
        height: 100%;
      display: flex;
      flex-wrap: wrap;
	  align-items: center;
      margin: 0;
      padding: 0;
      justify-content: space-between;
      li {
          list-style: none;
        margin: 0;
        padding: 0;
        width: 48.5%;
        background: #f4f6ff;
        border-radius: 8px;
        display: flex;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
        margin-bottom: 10px;
        cursor: pointer;
        img{
          width: 32px;
        }

        .right-info{
            margin-left: 10px;
            h3{
                margin: 0;
                padding: 0;
            }
            p{

                margin: 0;
                padding: 0;
                margin-top: 5px;
                font-size: 12px;
                color: #5e6e89;
            }
        }
      }
    }
  }
}
</style>
